/*********************************************************************************
 *      Copyright:  (C) 2022 Li Yanting<liyanting2@163.com>
 *                  All rights reserved.
 *
 *       Filename:  switch.h
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(07/06/2022)
 *         Author:  Li Yanting <liyanting2@163.com>
 *      ChangeLog:  1, Release initial version on "07/06/2022 09:23:40"
 *                 
 ********************************************************************************/
#ifndef _SWITCH_H_
#define _SWITCH_H_

#include <stdio.h>
#include <wiringPi.h>

#define GPIO_LED 3


/*********************************************************************************
 *      Function name:  switch_led
 *        Description:  led switch
 *         @parameter:  cmd 1-open 0-close
 *       Return value:  On error, -1 is returned. On success, 0 is returned.
 ********************************************************************************/
int switch_led(int cmd);

#endif
